using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Webcar
{
    public partial class leftnavi : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Repeater1.DataSource = SiteMap.RootNode.ChildNodes;
            this.Repeater1.DataBind();
        }

        protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                try
                {
                    Label lbl = (Label)e.Item.FindControl("lblUrl");
                    navipanel np = (navipanel)e.Item.FindControl("Navipanel1");
                    np.BindData(lbl.Text);
                }
                catch
                {
                }
                
            }
        }
    }
}
